import request from '@/api/http/request.js'

//切换模式
export function switchMode(params) { return request.postJson('/sun/center/switchMode', params) }
//设备列表
export function deviceList(params) { return request.postJson('/sun/center/deviceList', params) }
//设置时间
export function setTime(params) { return request.postJson('/sun/center/setTime', params) }
//设置温度
export function setTemp(params) { return request.postJson('/sun/center/setTemp', params) }
//开关
export function switchChange(params) { return request.postJson('/sun/center/switch', params) }
